import request from '@/utils/request'

export function getProdList (params) {
	return request({
		url: '/basic-api/zd/prod/getProdList',
		method: 'get',
		params
	})
}
export function getTenProd (params) {
	return request({
		url: '/basic-api/zd/prod/getTenProd',
		method: 'get',
		params
	})
}
export function getCustProdList (custId) {
	return request({
		url: '/basic-api/zd/prod/getCustProdList/' + custId,
		method: 'get'
	})
}
export function addProd (data) {
	return request({
		url: '/basic-api/zd/prod/add',
		method: 'post',
		data
	})
}

export function updateProd (data) {
	return request({
		url: '/basic-api/zd/prod/update',
		method: 'post',
		data
	})
}

export function removeProd (id) {
	return request({
		url: '/basic-api/zd/prod/remove/' + id,
		method: 'post',
	})
}
export function ifuse (id) {
	return request({
		url: '/basic-api/zd/prod/ifUse/' + id,
		method: 'post',
	})
}

